<template>
  <div id='GoodInfo'>
    <div>{{goodinfo.desc}}</div>
    <div class="oldprise">{{goodinfo.oldprice}}</div>
    <div class="columns">
      <div v-for="item in goodinfo.columns">
        {{item}}
      </div>
    </div>
    <div class="services">
      <div v-for="item in goodinfo.services" class="services-item">
        <img src="item.icon" alt="">
        <div>{{item.name}}</div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'GoodInfo',
    data() {
      return {
      }
    },
    props: {
      goodinfo: {
        type: Object,
        default() { }
      }
    },
    components: {},
    methods: {},
  }
</script>

<style scoped>
  .oldprise {
    font-size: 20px;

    margin-bottom: 30px;
  }

  .columns {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
  }

  .columns div {
    flex: 1;
  }

  .services {
    display: flex;
    font-size: 14px;
  }

  /* .services {
    flex: 0.1;
  } */


  .services-item {
    flex: 1;
    padding-bottom: 30px;
  }

  .services-item:nth-child(2) {
    flex: 0.8;
  }

  .services-item:nth-child(3) {
    flex: 1.2;
  }
</style>